package com.college.heyuhua.dao;

import com.college.heyuhua.model.AdminInfo;
import com.college.heyuhua.model.FileModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by 赵东坡 on 2019/2/7.
 * Time:11:08
 * 宇宙无敌赵牛逼，祈求永无bug
 */
@Mapper
@Component
public interface AdminMapper {

    @Select("<script>" +
            "select * " +
            "from admininfo a " +
            "where a.aname = #{aname} and a.apassword = #{apassword}" +
            "</script>")
    public AdminInfo getloginmes(@Param("aname") String aname, @Param("apassword")String apassword) ;



}
